<div class="row">
    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
        <h1 class="page-title txt-color-blueDark">
            <i class="fa fa-table fa-fw "></i> 
                 {:W('Nav/navTop')}
        </h1>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
        <div class="page-title text-left">
                
        </div>
    </div>
</div>

<!-- row -->
<div class="row">
    <!-- NEW COL START -->
    <article class="col-sm-12 col-md-12 col-lg-12">

        <!-- Widget ID (each widget will need unique ID)-->
        <div class="jarviswidget" id="{$Think.MODULE_NAME}-{$Think.CONTROLLER_NAME}-{$Think.ACTION_NAME}-2" data-widget-colorbutton="false" data-widget-editbutton="false" data-widget-custombutton="false">

            <!-- widget div-->
            <div style="border-top: solid 1px #ccc;">

                <!-- widget edit box -->
                <div class="jarviswidget-editbox">
                    <!-- This area used as dropdown edit box -->

                </div>
                <!-- end widget edit box -->

                <!-- widget content -->
                <div class="widget-body">
                        <form action="{:U('Config/save')}" id="add-form" method="post" class="form-horizontal">
                                <fieldset>
                                    <volist name="data" id="item">
	                                    <div class="form-group">
	                                        <label class="col-md-2 control-label">{$item.desc}</label>
	                                        <div class="col-md-10">
	                                            <textarea rows="2" name="{$item.key}" placeholder="" class="form-control">{$item.value}</textarea>
	                                        </div>
	                                    </div>
                                    </volist>
                                    <div class="form-group">
                                        <label class="col-md-10 control-label"></label>
                                        <div class="col-md-2">
                                            <button type='submit'>确定</button>
                                        </div>
                                    </div>
                                </fieldset>
                        </form>
                </div>
            </div>

        </div>
    </article>
</div>

<script type="text/javascript">
    //做一些清理工作
    $(".DTTT_dropdown").remove();
    $('.ui-dialog').remove();
    $('.datetimepicker').remove();
    
    $('#add-form').submit(function(){
        $(this).ajaxSubmit(function(data) {     
            if( data.status==200 ){
                alert("操作成功");
            }else{
                alert(data.msg);
            }
        });
        return false;
    });
    
/*     var ajaxUploadUrl = "{:U("Common/upload")}";
    
    $('#tmpfile').uploadify({
        'formData'     : {
            'timestamp' : '<?php echo $timestamp;?>',
            'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
        },
        'swf'      : './js/uploadify/uploadify.swf',
        'uploader' : ajaxUploadUrl,
        'auto':true,
        'multi':false,
        'buttonText':"上传",
        'width':30,
        'onUploadSuccess' : function(file, data, response) {
            data = eval("("+data+")");;
            //alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
            var img_url = data.content;
            console.log(data);
            console.log( $("#tmpfile").parent().siblings('input').eq(0).val() );
            $("#tmpfile").parent().siblings('input').eq(0).val(img_url);
        }
    }); */

</script>